xenpaging: drop paged pages in guest_remove_page
authorKeir Fraser <keir@xen.org>
Tue, 11 Jan 2011 10:38:28 +0000 (10:38 +0000)
committerKeir Fraser <keir@xen.org>
Tue, 11 Jan 2011 10:38:28 +0000 (10:38 +0000)
commitee3c42ba5bffeb7fa2ea4baac6af8608c707e1b8
tree90e8465e4e7dbf4c5c82282364db8cd6d5e9dc4d
parentbc89270b8a749773ca717a5c21dcce4a9edd7894
xenpaging: drop paged pages in guest_remove_page

Simply drop paged-pages in guest_remove_page(), and notify xenpaging
to drop its reference to the gfn. If the ring is full, the page will
remain in paged-out state in xenpaging. This is not an issue, it just
means this gfn will not be nominated again.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
tools/xenpaging/xenpaging.c
xen/arch/x86/mm/p2m.c
xen/common/memory.c
xen/include/asm-x86/p2m.h
xen/include/public/mem_event.h